import request from '@/utils/request.js'

// 获取聊天记录
export function getChatRecord() {
  return request({
    url: '/ai/chatRecord',
    method: 'GET'
  })
}

// 清空聊天历史
export function clearChatHistory() {
  return request({
    url: '/ai/clear',
    method: 'DELETE'
  })
}

// 删除对话
export function deleteChat(id) {
  return request({
    url: `/ai/delete?id=${id}`,
    method: 'DELETE'
  })
}

